<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>重庆大学硕士研究生服务系统</title>
<?php $this->load->view('includes/ga_head'); ?>  
</head>
<!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
<!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
<!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
<!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> 
<body class=""> 
<!--<![endif]-->
<?php $this->load->view('includes/ga_navbar'); ?>  
<?php $this->load->view('includes/ga_sidebar'); ?>  
<div class="content">
    <div class="header">
        <h1 class="page-title">招生宣传活动</h1>
    </div>
    <ul class="breadcrumb">
        <li><a href="index.html">Home</a> <span class="divider">/</span></li>
        <li class="active">活动一览</li>
    </ul>
    <div class="container-fluid">
        <div class="row-fluid">
<?php $this->load->view('includes/ga_message'); ?>  
<div class="btn-toolbar">
<a href="<?php echo $base_url;?>gass_recruit/add_new_recruit" class="btn btn-primary" ><i class="icon-plus"></i> 新增宣传活动</a>
<div class="btn-group">
</div>
</div>
<?php echo form_open(current_url());	?>
<div class="input-append">
<input type="text" class="span2 search-query" id="search" name="search_key_words" value="<?php echo $search_key_words; ?>">
<input type="submit" name="search_submit" class="btn" value="搜索" />
<a class="btn" href="<?php echo $base_url; ?>gass_recruit/manage_recruit">重设</a>
</div>
<?php echo form_close();?>	
<div class="well">
<?php $attributes = array('id' => 'recruit_list_form');echo form_open(current_url(), $attributes);?>  	
            <table class="table table-striped table-hover">
                <thead>
                    <tr>
		<th>招生宣传名称</th>
		<th>有效期</th>
		<th>删除</th>
                    </tr>
                </thead>
                <?php if (!empty($recruitListInfo)) { ?>
                <tbody>
		<?php foreach ($recruitListInfo as $rli) { ?> 
   <?php 
  $t1 = date("Y-m-d",time());
  $t2 = substr($rli['activity_over'],0,10);
  ?>	
		<tr>	
			<td <?php echo ($t1 > $t2)?"style='color:#CCCCCC'":""; ?> ><?php echo $rli['activity_alias'];?></td>
			<td <?php echo ($t1 > $t2)?"style='color:#CCCCCC'":""; ?> ><?php echo $rli['activity_begin'].'————'.$rli['activity_over'];?></td>
			<td><input type="checkbox" name="delete_activity[<?php echo $rli['activity_id'];?>]" value="1"/></td>
		</tr>
                <?php } ?>
                </tbody>	<TFOOT>
      <TR>
         <TD colSpan=2><?php if (! empty($pagination['links'])) { ?>
               总数: 共 <?php echo $pagination['total_recruit'];?> 条查询结果
               链接: <?php echo $pagination['links'];?>
               <?php } ?>
         </TD> 
         <td colSpan=1>
  <button type="submit" class="btn" id="del_btn" /><i class="icon-remove"></i> 更改/删除招生宣传活动 
  </button>
  <input type="hidden" value="1" name="update_recruits"/>
         </td>
      </TR>
    </TFOOT>
            <?php } else { ?>
                <tbody>
                    <tr>
                        <td colspan="7">没有任何招生宣传活动信息
                        </td>
                    </tr>
                </tbody>
            <?php } ?>
            </table>
            <?php echo form_close();?>
                
</div>
<?php $this->load->view('includes/ga_footer'); ?>  
        </div>
    </div>
</div>
<?php $this->load->view('includes/ga_scripts'); ?>
<script>
$(document).ready(function(){
    $('#del_btn').confirm({
		'title' : '更改/删除招生宣传活动',
		'message' : '您确定要更改/删除该招生宣传活动吗,请谨慎操作？!',        
		'action' : function() {
			$('#recruit_list_form').submit();
		}
	});
});
</script>  
  
</body>
</html>
